﻿using ConsoleApp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApp_core
{
    public class IQueryAbleClass
    {
        public void Show()
        {
          var test=  GetStudentQuerys();
          var test2=  GetStudentQuerys().ToList();
        }

        private IQueryable<Student> GetStudentQuerys()
        {
            List<Student> ListUser = new List<Student>();
            var PassUser = ListUser.AsQueryable();
            ListUser.Add(new Student() { id = 1 });
            ListUser.Add(new Student() { id = 2 });
            ListUser.Add(new Student() { id = 3 });
            ListUser.Add(new Student() { id = 4 });
            return PassUser;
        }
    }
}
